home *** CD-ROM | disk | FTP | other *** search
- /* display JForth source file & word */
-
- OPTIONS results
-
- rex = 0; result = "NOTSUPPORTED"
- textraversion
- parse var result maj min rex
- if (result == "NOTSUPPORTED") | (rex < 2) then do
- notify "Textra V1.12 or later required for this script."
- exit
- end
-
- get select text
- parse var result numlines' 'theString
-
- if numlines > 0 then do
- notify "Select cannot extend past 1 line for VIEWSEL"
- exit
- end
-
- theString = UPPER(theString)
-
- address 'JFORTH' '" 'theString'" ReturnFileName'
-
- if (result ~= "NOT FOUND") then do
- fname = result
- if (fname ~= "RESULT") then do
- openfile '"'fname'"'
- find theString
- end
- end
-